#include "MyGlWindow.h"
#include <QGuiApplication>
#include <QSurfaceFormat>


int main(int argc, char *argv[])
{
    QGuiApplication a(argc, argv);

    QSurfaceFormat format;
    format.setMajorVersion(3);
    format.setMinorVersion(3);
    format.setProfile(QSurfaceFormat::CoreProfile);
    format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
    format.setSwapInterval(1);

    MyGlWindow w;
    w.setFormat(format);
    w.show();

    return a.exec();
}
